import requests


url = "https://mall.deyunce.com/api/goods/getGoodsDetail"
header = {"Authorization": "Basic ZGV5dW5jZTo4MjgxMjM=", "Token": "2a7d775cc6c5524e856c46e43cef497c"}
params = {"id": 1782}
qing_qiu = requests.get(url, params, headers=header)
res_code = qing_qiu.status_code
print("响应文本：", qing_qiu.text)
resboay = qing_qiu.json()
res_msg = resboay["msg"]
print(res_msg)
assert res_code == 200
assert res_msg == "获取成功"